<div id="page_content" style="margin-left: 20px; margin-right: 20px;">  
<?php
if (is_user_logged_in())
{
global $current_user;
$user_roles = $current_user->roles;
$user_role = array_shift($user_roles);
if ($user_role == 'administrator' || $user_role == 'moderator')
{
$Record = new Pod('brand');
global $current_user;
get_currentuserinfo();
//check out how to use currentuserarray at http://pods.uproot.us/forums/displaying-pod-items/813
$login_name = $current_user->ID;
$fields = array('name', 'contact', 'logo', 'email', 'phone', 'webpage', 'location', 'body', 'user' => array('default' => $login_name, 'hidden' =>true),'brandurl' => array('hidden'=>true),'brand_pics','local');
//'status' => array('default' => 'Submitted', 'hidden' => true));
echo $Record->publicForm($fields, 'Save Brand');
}
}
else
{
echo "Please Login to view Page";
}
?>
</div>